package com.example.demo.entity;

import java.io.Serializable;
import java.util.Objects;

public class Entertainment implements Serializable {
    private Integer eid;
    private String etype;
    private String ename;
    private String estatus;

    public Entertainment(Integer eid, String etype, String ename, String estatus) {
        this.eid = eid;
        this.etype = etype;
        this.ename = ename;
        this.estatus = estatus;
    }

    public Entertainment() {
    }

    public Integer getEid() {
        return eid;
    }

    public void setEid(Integer eid) {
        this.eid = eid;
    }

    public String getetype() {
        return etype;
    }

    public void setetype(String etype) {
        this.etype = etype;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getEstatus() {
        return estatus;
    }

    public void setEstatus(String estatus) {
        this.estatus = estatus;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Entertainment that = (Entertainment) o;
        return Objects.equals(eid, that.eid) && Objects.equals(etype, that.etype) && Objects.equals(ename, that.ename) && Objects.equals(estatus, that.estatus);
    }

    @Override
    public int hashCode() {
        return Objects.hash(eid, etype, ename, estatus);
    }

    @Override
    public String toString() {
        return "Entertainment{" +
                "eid=" + eid +
                ", etype='" + etype + '\'' +
                ", ename='" + ename + '\'' +
                ", estatus='" + estatus + '\'' +
                '}';
    }
}
